package main.murder;	


import main.model.Crime;

/**
 * 
 * @author michael horner
 *
 *Mord Klasse erbt von Crime
 *
 */

public class Murder extends Crime {



	private String weapon;
	
	private boolean isWeapon;


	

	public Murder() {
		
		this("");
		this.weapon="";
		
	}
	
	public Murder(String shortDescription) {
	    
	    super(null, shortDescription);
        isWeapon = false;
	}
	
	
	
	public String getWeapon() {

		return weapon;
	}

	public void setWeapon(String weapon) {

		this.weapon = weapon;
	}

	public boolean isWeapon() {
		return isWeapon;
	}

	public void setIsWeapon(boolean isweapon) {
		this.isWeapon = isweapon;
	}
	
	@Override
	public boolean equals(Object obj){
		
			if (obj == null){
				return false;
			}
			if (obj == this){
				return true;
			}
			if (this.getClass() != obj.getClass()){
				return false;
			}
			Murder murder = (Murder) obj;
			if (this.getId()==(murder.getId())){
				return true;
			}
			return false;
		}
	

	@Override
	public int hashCode(){
		return getId();
	}

	

}
